package com.simon.notes.model;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "notes")
public class NotesModel implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6883264116047614911L;
	
	public static final String ID = "id";
	public static final String DATE = "date";
	public static final String NOTE = "note";
	public static final String TOPIC = "TOPIC";
	
	public NotesModel() {
	}

	public NotesModel(long id, String date, String note, String topic) {
		this.id = id;
		this.date = date;
		this.note = note;
		this.topic=topic;
	}

	@DatabaseField(generatedId = true)
	private long id;
	@DatabaseField
	private String date;
	@DatabaseField
	private String note;
	@DatabaseField
	private String topic;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

}